<?php
return array(
	'MODULE_ALLOW_LIST'    =>    array('Home','Admin','Bss'),
	'DEFAULT_MODULE'       =>    'Home',
	'URL_CASE_INSENSITIVE'  =>  true,  //URL忽略大小写
    
    'URL_ROUTER_ON' =>true,//启动路由
    'URL_ROUTE_RULES'=>array(
        '/^api\/(\w+)\/(\w+)\/(\w+)$/' =>'Dataex/api?tablename=:1&service=:2&api=:3',
        // 'new/top' => 'dataex/api',
        // 'api'=>'dataex/api',
    ),
	
	//databse info
	'DB_TYPE'   => 'mysql', //database type
	'DB_HOST'   => 'www.phpmyadmin.com', // 服务器地址
    //'DB_HOST'   => 'dev.db.37degree.com', // 服务器地址
	'DB_NAME'   => '37degree_dataex', //database name
	'DB_USER'   => 'dmp', //database user
	'DB_PWD'    => 'dmpdev2015', //database passwd
	'DB_PORT'   => 3306, //database port
	'DB_PREFIX' => 'dmp_', //database table pre
	'DB_CHARSET'=> 'utf8', //database charset


    //***********************************缓存设置**********************************
    /* redis info*/
    'DATA_CACHE_TYPE'                   => 'Redis',// 数据缓存类型,
    // 'REDIS_HOST'                        => '192.168.10.146',
    'REDIS_HOST'                        => '106.3.36.147',
    // 'DATA_CACHE_PREFIX'      => '37degree_redis_',      // 缓存前缀
    // 'REDIS_HOST'                        => '127.0.0.1',// 服务器ip
    'REDIS_PORT'                        => 6379,
    'DATA_CACHE_TIME'                   => 3600,// 数据缓存有效期s

	// email config
    'MAIL_HOST' =>'smtp.exmail.qq.com',//smtp info
    'MAIL_SMTPAUTH' =>TRUE, //enable smtp auth
    'MAIL_USERNAME' =>'service@37degree.com',//sender user
    'MAIL_FROM' =>'service@37degree.com',//email
    'MAIL_FROMNAME'=>'云途数据市场',//sender name
    // 'MAIL_PASSWORD' =>'vbcuwjdmjkapxiemapQCAOP369',//sender passwd
    'MAIL_PASSWORD' =>'37Degree',
    'MAIL_CHARSET' =>'utf-8',//email charset
    'MAIL_ISHTML' =>TRUE, // is html format
    
    //tag
    '37DEGREE_HOME_TAG'=>'37DEGREE_HOME',
    '37DEGREE_SERVER_TAG'=>'37DEGREE_SERVER',

    //http Basic Auth
    'HTTP_BASIC_AUTH_USER' =>'admin@37degree.com',
    'HTTP_BASIC_AUTH_USERTOKEN' =>'cd2de4d33f17417892697ce3ea7c1f00',
    'HTTP_BASIC_AUTH_DEBUG_USER' =>'debug@37degree.com',
    'HTTP_BASIC_AUTH_DEBUG_USERTOKEN' =>'86d065ce2bd841d0a0b45d2aacd628fe',
    'GLOBAL_KEY'=>'@37Degree#2016',
    
    //http api
    'AUTH_ADD_USER'=>'https://api.37degree.com/open/api_mgr_srv/user_add',//server gate adduser
    'AUTH_ADD_USER_API'=>'https://api.37degree.com/open/api_mgr_srv/auth_add',//authorization api
    'AUTH_UPDATE_USER_API'=>'https://api.37degree.com/open/api_mgr_srv/auth_update',//更新用户对某个api访问权限
    'AUTH_ADD_API'=>'https://api.37degree.com/open/api_mgr_srv/api_add',//addapi
    'AUTH_ADD_SERVICE'=>'https://api.37degree.com/open/api_mgr_srv/service_add',//addservice
    'AHTH_DELETE_API'     =>'https://api.37degree.com/open/api_mgr_srv/api_del',
    'AUTH_UPDATE_API'=>'https://api.37degree.com/open/api_mgr_srv/api_update',
    'AUTH_API_EXISTS' =>'https://api.37degree.com/open/api_mgr_srv/api_exist',
    'AUTH_SERVICE_EXISTS'=>'https://api.37degree.com/open/api_mgr_srv/service_exist',
    'AUTH_SERVICE_UPDATE'=>'https://api.37degree.com/open/api_mgr_srv/service_update',
    'AUTH_API_ORDER_VARY'=>'https://api.37degree.com/open/api_mgr_srv/order_vary',
    'AUTH_API_USED_VARY'=>'https://api.37degree.com/open/api_mgr_srv/used_vary',
    'AUTH_API_MGR_SRV'=>'https://api.37degree.com/open/api_mgr_srv/order_get',//查询api消费情况接口
    'AUTH_API_ORDER_SET'=>'https://api.37degree.com/open/api_mgr_srv/order_set',

    'AUTH_API_ORDER_VARY_NUM'=>5000,    //api请求最大次数/条数
    'AUTH_API_PAGESIZE_MAX'=>50,        //api请求中每页返回最大条数
    'AUTH_PAGESIZE_STRING'=>'size',     //api请求中，页码的参数名称
    
    //captch
    //  'CAPTCHA_ID'=>'a5e4cfd9035829c09b0212335b4d52b4',
    // 'CAPTCHA_PRIVATE_KEY'=>'fc617f5d26ca9f795586514a56cc8762', 
	
	'CAPTCHA_ID'=>'fc29ce3bce99b96eb9e26e2fc63635b3',
    'CAPTCHA_PRIVATE_KEY'=>'81967e0fc08d13c4d5a858631545b5ef',

    //dataex external service host
    'DATAEX_HOST'=>'https://api.37degree.com',

    //statistics database info
    'STATIC_HOST'=>'gp.37degree.com',
    //'STATIC_HOST'=>'106.3.36.152',
    //'STATIC_HOST'=>'192.168.10.152',
    'STATIC_PORT'=>'5432',
    'STATIC_DB_NAME'=>'apistore',
    'STATIC_DB_USER'=>'dmp',
    'STATIC_DB_PWD'=>'dmpdev2015',

    //爬虫数据dataex
    'DATAEXGP_HOST'=>'dataexgp.37degree.com',
    'DATAEXGP_PORT'=>'5432',
    'DATAEXGP_DB_NAME'=>'dataex',
    'DATAEXGP_DB_USER'=>'dmp',
    'DATAEXGP_DB_PWD'=>'dmpdev2015',

    //redis emai active time
    //'REDIS_EMAIL_EXPIRE'=>24*3600,
    'REDIS_RESET_EMAIL_EXPIRE'=>24*3600,
    'RESET_PRIX'=>'37degree_reset',
    'REDIS_REGISTER_EMAIL_EXPIRE'=>24*3600,
    'REGISTER_PRIX'=>'37degree_register',

    'DEFAULT_FILTER'        =>  'htmlspecialchars,addslashes', // 默认参数过滤方法 用于I函数...
    //首页精品及热门数据数量
    'INDEX_RECOMMEND_NUM' =>5,
    'INDEX_CATEGORY_NUM'=>6,

    /**支付宝支付-相关 start **/
        //合作身份者ID，签约账号，以2088开头由16位纯数字组成的字符串，查看地址：https://openhome.alipay.com/platform/keyManage.htm?keyType=partner
        'PARTNER'=>'2088901354250285',
        //收款支付宝账号，以2088开头由16位纯数字组成的字符串，一般情况下收款账号就是签约账号
        'SELLER_ID'=>'2088901354250285',
        //商户的私钥,此处填写原始私钥去头去尾，RSA公私钥生成：https://doc.open.alipay.com/doc2/detail.htm?spm=a219a.7629140.0.0.nBDxfy&treeId=58&articleId=103242&docType=1
        // 'PRIVATE_KEY'=>'/cert/alipaykey/rsa_private_key.pem',
        'PRIVATE_KEY'=>'MIICXAIBAAKBgQDMJtjYYo0zzLhi94XRCJbI9LL+jgz5JzOkErvm77N79eb320sB
WxhgcM1qRSPs4/m27BpI8YKQiY9tToCaF7A9KQl6eNt0t5nnr9fRYRAPWex9nyz4
vC8II3tNPvRILwOKO4rYQ6YCJH0MfJwap/6Siin4tNAFHgGUKGZBOMG01QIDAQAB
AoGBAMbphtj21RvGeVW8VL8CPmCYw5pw78UHZDKWKkzt+pRqWNvg6CjvCEZXQl4r
9cAHtLR9QXMXFZ8c2QmotnbtY8HFmuqLvxarQ7jY4uFeexQBr9l4SjPM/4DI/4hO
vxDrWypOTQbSjGbRTSds2eRwQQrD3fW14MlsuNWOEAZ95njhAkEA8I5NTl9h7Vyz
nf8F2w3csgC3pdPvHbE0HRVbVXay+kntRXkOXa9wW2GKCc40wAGl3XS7c0IdQcRX
srbOfJSIuQJBANlCOAIDsevOOTgM7ZhgXHvQSlp3E8gFOEczJAEjffe14cyfS/mF
x80XtL8TaRARoZ/+BJKB+0Ia3oPpR+80Rv0CQGclTUaOpYnGlwnnINalofz9S8Gi
F0SPB/50et4xcFrbug5w8tT+9dlpAGxl675stnc3p2yra6oYi1YJBo7qjZkCQATu
y/a/vrpr5ECxinN7PJ5TDF0hdwGDnNOBBcBA3gtRxd6vfzobH344m5H7Dteejtzj
F5d7/Ah0M7krAscbmMECQCnTJOZyC40e9w6/BJtiq9xXXt6pCisu6x3h43uSYVCV
N9s5eqpo0Dt+yieP0M0xMKYHJU+n4HAg/h8PaVAHGzA=',

        //支付宝的公钥，查看地址：https://b.alipay.com/order/pidAndKey.htm
        // 'ALIPAY_PUBLIC_KEY'=>'/cert/alipaykey/alipay_public_key.pem',
        'ALIPAY_PUBLIC_KEY'=>'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCnxj/9qwVfgoUh/y2W89L6BkRAFljhNhgPdyPuBV64bfQNN1PjbCzkIM6qRdKBoLPXmKKMiFYnkd6rAoprih3/PrQEB/VsW8OoM8fxn67UDYuyBTqA23MML9q1+ilIZwBC2AQ2UBVOrFXfFl75p6/B5KsiNG9zpgmLCUYuLkxpLQIDAQAB',
        // 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
        'NOTIFY_URL'=>'http://106.3.36.147/pay/alipay_notify',
        // 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
        'RETURN_URL'=>'http://106.3.36.147/pay/alipay_return',
        //签名方式
        'SIGN_TYPE'=> 'RSA',
        //字符编码格式 目前支持 gbk 或 utf-8
        'INPUT_CHARSET'=>'utf-8',
        //ca证书路径地址，用于curl中ssl校验
        //请保证cacert.pem文件在当前文件夹目录中
        // 'cacert'=>getcwd().'\\cacert.pem',
        //访问模式,根据自己的服务器是否支持ssl访问，若支持请选择https；若不支持请选择http
        'TRANSPORT'=>'http',
        // 支付类型 ，无需修改
        'PAYMENT_TYPE'=>'1',
        // 产品类型，无需修改
        'SERVICE'=>'create_direct_pay_by_user',
        // 防钓鱼时间戳  若要使用请调用类文件submit中的query_timestamp函数
        'ANTI_PHISHING_KEY'=>"",
        // 客户端的IP地址 非局域网的外网IP地址，如：221.0.0.1
        'EXTER_INVOKE_IP'=>"",
    /**支付宝支付-相关 end **/

    //超级管理员uid
    'ADMIN_UID'=>'999999999',

    // //***********************************SESSION设置**********************************
    'SESSION_OPTIONS'         =>  array(
        'name'                =>  '37DEGREE_SESSION',                    //设置session名
        'expire'              =>  15*24*3600,                      //SESSION保存1小时
        'use_trans_sid'       =>  1,                               //跨页传递
        'use_only_cookies'    =>  0,                               //是否只开启基于cookies的session的会话方式
    ),
);